#include<stdio.h>
int main()
{	
	int n,i,t;
	int a[] = {7,28,32,6,9,45,12,36,2};
	n = sizeof(a) / sizeof(a[0]);
	while(n > 1)
	{
		for(i = 0;i < n-1;i++)
		{
			if(a[i] > a[i+1])
			{	
				t = a[i+1];
				a[i+1] = a[i];
				a[i] = t;
			}
		}
		n--;
	}
	n = sizeof(a) / sizeof(a[0]);
	for(i = 0; i < n; i++)
	{
		printf("%d ",a[i]);
	}
	printf("\n");
	return 0;
}
